cmake_minimum_required(VERSION 3.16)
project(Server C)

set(CMAKE_C_STANDARD 11)

# 查找 OpenSSL 库
find_package(OpenSSL REQUIRED)

# 包含 OpenSSL 头文件
include_directories(${OPENSSL_INCLUDE_DIR})

include_directories(.)
aux_source_directory(. SS_SRC)
aux_source_directory(../utils UB_SRC)

add_executable(Server main.c ${SS_SRC} ${UB_SRC})

target_link_libraries(Server PRIVATE pthread mysqlclient crypt ${OPENSSL_LIBRARIES} OpenSSL::Crypto)
